/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Gui;

import Preferences.AccountInUse;

/**
 * @author Fork
 */
public class Main {

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                if (AccountInUse.profile.exists()) {
                    AccountInUse.Load();
                    new MainInterface().setVisible(true);
                } else {
                    new AccountCreation().setVisible(true);
                }
            }
        });
    }


    public static void startCalc() {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainInterface().setVisible(true);
            }
        });
    }

}
